
package com.jf.cloud.api.delivery.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zz
 * @date 2020/12/14
 */
@FeignClient(value = "jfcloud-delivery",contextId ="delivery-company")
public interface DeliveryCompanyFeignClient {
    /**
     * 根据快递公司id获取快递公司信息
     * @param companyId 快递公司id
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/delivery/getByDeliveryCompanyByCompanyId")
    ServerResponseEntity<String> getByDeliveryCompanyByCompanyId(@RequestParam("companyId") Long companyId);
}
